package com.mingweicai.intergration.thread.pc1;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Restaurant {

  Meal meal;
  ExecutorService executor = Executors.newCachedThreadPool();
  Chef chef = new Chef(this);
  WaitPerson waitPerson = new WaitPerson(this);

  public Restaurant() {
    executor.execute(chef);
    executor.execute(waitPerson);
  }

  public static void main(String args[]){
    new Restaurant();
  }

}
